<template>
  <div class="problem-pane">
    <el-scrollbar>

    <div class="problem-pane-header">
      <div class="header-title"><slot name="problem-name"></slot></div>
      <div class="header-desc">
        <span>状态：<slot name="problem-status"></slot></span>
        <span>难度：<slot name="problem-difficulty"></slot></span>
        <span>通过率：<slot name="problem-pass"></slot></span>
        <span>时间限制：<slot name="problem-timeLimit"></slot> ms</span>
        <span>内存限制：<slot name="problem-memoryLimit"></slot> MB</span>
      </div>
    </div>
    <div class="problem-pane-main">
      <div v-html="problemDesc" class="problem-description"></div>
    </div>
    </el-scrollbar>
  </div>
</template>

<script>
export default {
  name: "ProblemPane",
  props: {
    problemDesc: ''
  }
}
</script>

<style scoped>
  .problem-pane {
    background-color: #fff;
    font-size: 14px;
    height: 100%;
  }
  .header-title {
    margin-top: 10px;
    font-size: 16px;
    margin-bottom: 15px;
  }
  .header-desc {
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
  }
  .header-desc span {
    margin-right: 35px;
  }

  .problem-pane-main {
    /*padding-top: 20px;*/
    font-size: 13px;
    line-height: 1.5;
    font-family: "Microsoft YaHei";
  }

  .problem-description >>> div {
    width: 95%;
    border: #ddd solid 1px;
    background-color: #f8f8f8;
    padding: 10px 15px;
    margin: 10px 0px;
  }
</style>